<!DOCTYPE html>
<html xmlns:th=xmlns:th="https://www.Thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorate="~{/layout/layout}">
<head>
    <title>登录页面</title>
</head>

<body>

<div class="container" layout:fragment="content">
    <!--代码部分-->
    <form>
        <div class="form-group">
            <label for="username">帐号：</label>
            <!--样式form-control会让input元素宽度为父容器100%-->
            <input type="text" class="form-control" id="username" name="username" placeholder="请输入帐号"/>
        </div>
        <div class="form-group">
            <label for="password">密码：</label>
            <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码"/>
        </div>
        <button type="submit" class="btn ">登录</button>
    </form>

</div>
</body>
</html>